<div id="admin-contacts-grid">
    <form id="tiles-list-form">
    <?php
    $this->widget('zii.widgets.grid.CGridView', array
    (
        'dataProvider' => $oDataProvider,
        'columns'      => array
        (
            array
            (
                'name'  => 'contact_name',
                'htmlOptions' => array('class' => 'center'),
                'value' => '$data->contact_name'
            ),
            array
            (
                'name'  => 'contact_title',
                'htmlOptions' => array('class' => 'center'),
                'value' => '$data->contact_title'
            ),
            array
            (
                'name'  => 'contact_cdate',
                'htmlOptions' => array('class' => 'center'),
                'value' => 'date("d-m-Y H:i", $data->contact_cdate)'
            ),
            array
            (
                'type'        => 'raw',
                'htmlOptions' => array('class' => 'center'),
                'value'       => 'CHtml::link("детали", array("/admin/contacts/details", "contact_id" => $data->contact_id))'
            ),
            array
            (
                'type'        => 'raw',
                'htmlOptions' => array('class' => 'center'),
                'value'       => 'CHtml::ajaxLink("удалить", array("/admin/contacts/index", "contact_id" => $data->contact_id, "do" => "delete"), array("class" => "delete", "replace" => "div#admin-contacts-grid"))'
            )
        ),
        'cssFile' => false,
        'pager'   => array
        (
            'cssFile' => false,
            'header'  => ''
        ),
        'summaryText' => '<div class="fl">Показаны {start}-{end} из {count} результатов.</div>'
    ));
    ?>
    </form>
</div>
